.q-picture {
  .q-field__control,
  .q-field__native {
    min-height: auto;
  }

  .q-field__inner {
    background-color: transparent;
  }

  .q-file--only-view-cls {
    position: relative;
    top: .125rem;
  }

  .q-field__inner .q-field__control-container {
    padding-top: 0 !important;
  }

  .q-field__native {
    padding-top: 0 !important;
    padding-bottom: .25rem !important;
  }

  .q-uploader {
    width: 100%;
    background-color: transparent;
  }

  .q-uploader .q-uploader__list {
    display: none;
  }

  .q-img__content > div {
    padding: .125rem .3125rem;
    background: rgba(0, 0, 0, 0.47);
  }

  .q-pictrue-card {
    > .q-img {
      width: 8rem;
      max-height: 8rem;
    }
  }

  .q-img__content .uploader-error {
    cursor: default;

    i {
      top: -.07rem;
      font-size: 1.2rem;
    }
  }

  .q-pictrue-tip {
    cursor: default;
    opacity: .8;

    i {
      opacity: .5;
    }

    i:hover {
      opacity: 1;
    }
  }

  .q-pictrue-add-btn {
    .q-icon {
      font-size: 2.5rem;
    }
  }

  .q-uploader__dnd {
    display: none;
  }
}

.q-preview {
  background-color: rgba(0, 0, 0, 0.3);

  .q-carousel__slide, .q-carousel .q-carousel--padding {
    display: flex;
    padding: 0 $space-base;
    align-items: center;
    justify-content: center;
  }

  .q-preview-tip {
    height: 3rem;

    i {
      opacity: .5;
      transition: btn-out, transform .3s ease;
    }

    background-color: rgba(0, 0, 0, 0.47);
  }

  .q-panel::-webkit-scrollbar {
    display: none;
  }
}

.q-dialog__inner--minimized:not(.q-dialog__inner--left):not(.q-dialog__inner--right) > div {
  max-height: calc(100vh - 3rem) !important;
}

.q-dialog__inner--minimized:not(.q-dialog__inner--top):not(.q-dialog__inner--bottom) > div {
  max-width: calc(100vw - 3rem) !important;
}

.q-dialog__inner--left, .q-dialog__inner--right, .q-dialog__inner--top, .q-dialog__inner--bottom {
  padding: 0;
}

.q-modal {
  &-header {
    height: 2.5rem;
  }

  &-footer {
    //height: 3.5rem;
  }
}

.qx-page {
  position: absolute;
  inset: 0;
  z-index: 999;

  &-header {
    height: 2.5rem;
    margin: 0 0 .5rem;
    box-shadow: 0 .125rem .125rem -.125rem rgb(0 0 0 / 20%), 0 .125rem .3125rem .0625rem rgb(0 0 0 / 14%) !important;
  }
}

.q-dark .qx-page-footer {
  background-color: rgba(255, 255, 255, 0.15);
}

.qx-tooltip {
  white-space: pre-line;
  word-break: break-word;
  overflow-wrap: break-word;
}

.qx-tree {
  height: auto;
  max-height: 100%;
  position: relative;

  .q-tree__node-header:before {
    border-left-style: dashed;
    border-bottom-style: dashed;
  }

  .q-tree__node:after,
  .q-tree__node-collapsible .q-tree__node-body:after {
    border-left-style: dashed;
  }

  .q-tree__node--selected::after {
    position: absolute;
    inset: 0;
    content: '';
    opacity: .15;
    border-radius: inherit;
    background-color: var(--q-primary);
  }
}

.q-dialog-tips {
  min-width: 15rem;

  .q-dialog__message {
    padding: $space-base;

    &:after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -.08rem;
      width: 100%;
      height: .08rem;
      background-color: $separator-color;
    }
  }

  .q-card__actions--horiz {
    padding: 0;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}

.q-carousel-set {
  height: inherit;
  overflow: hidden;

  .q-carousel__slides-container {
    position: relative;
    top: 0;
  }

  .q-carousel__navigation--bottom {
    left: 50%;
    right: auto;
    bottom: -1rem;
    transform: translateX(-50%);

    .q-icon {
      font-size: 1.5rem;
    }
  }
}
